const http = require( 'http' );
const path = require( 'path' );
const qs = require( 'querystring' );

http.createServer( ( req, res ) => {

    let postData = '';

    req.on( 'data', buffer => {
        postData += buffer;
    } );
    
    req.on( 'end', () => {
        console.log( qs.parse( postData ) );
    } );
    res.end( 'aaa' );
} ).listen( 8080, () => console.log( '8080' ) );